import { Injectable } from '@angular/core';
import { MessageBoxResult } from './messageBoxResult';

@Injectable()
export class ModalService {
    /**
     * 弹出messagebox框
     * 
     * @param {string} title
     * @param {string} content
     * @returns
     * 
     * @memberOf ModalService
     */
    Show(title: string, content: string) {
        return this.OnShow(title, content);
    }

    OnShow: (title: string, content: string) => Promise<MessageBoxResult>;
}